package com.vkmessenger.gui.components;

import android.content.Context;

/**
 * Created by IntelliJ IDEA.
 * User: Evgeniy Krasko
 * Date: 28.05.12
 * Time: 1:16
 */
public class TabButtonFactory {
    public static BottomTabButton getBottomTabButton(Context context, int image, String text) {
        BottomTabButton button = new BottomTabButton(context);
        button.getPictureImageView().setImageDrawable(context.getResources().getDrawable(image));
        button.getNameTextView().setText(text);
        return button;
    }

    public static TopTabButton getTopTabButton(Context context, String text) {
        TopTabButton button = new TopTabButton(context);
        button.getNameTextView().setText(text);
        return button;
    }
}
